/* 
 * File:   config_file.h
 * Author: onteria_
 *
 * Created on May 1, 2011, 6:57 AM
 */

#include <confuse.h>

#ifndef CONFIG_FILE_H
#define	CONFIG_FILE_H

#ifdef	__cplusplus
extern "C" {
#endif

    typedef struct {
        int error_flag;
        const char * server_ipv6;
        const char * server_ipv4;
        int port_ipv4;
        int port_ipv6;
        int total_ipv4_connections;
        int total_ipv6_connections;
        int timeout;
        int max_content_length;
        int ipv6;
    } Config;    
    
    Config parse_config(const char * path);
    Config config_file;

#ifdef	__cplusplus
}
#endif

#endif	/* CONFIG_FILE_H */

